-- resource
-- created by panyl
-- 天空之城探索-资源

return {
    handleResult = function(index, para)
        local bonus = para.bonus;
        local treasureInfo = nil;

        if para.treasure_id then
            -- 如果有宝藏
            treasureInfo = {
                ["explore_index"] = index,
                ["treasure_id"] = para.treasure_id,
            };
        end

        if bonus then
            SkyExploreM.doBonus(bonus, treasureInfo, index);
        end
    end,
};
